import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'login',
      component: () => import('../views/login.vue')
    },
    {
      path:'/index',
      name:'layout',
      component:()=>import('../layout/index.vue'),
      children:[
          {
              path:'',
              name:'index',
              component:()=>import('../views/index.vue')
          },  
          {
            path:'/zhanshi',
            name:'zhanshi',
            component:()=>import('../views/zhanshi.vue')
          },
          {
            path:'/gouwuc',
            name:'gouwuc',
            component:()=>import('../views/gouwuc.vue')
        },  
        {
          path:'/dingdan',
          name:'dingdan',
          component:()=>import('../views/dingdan.vue')
      }, 
      ]
  },

    {
      path: '/zhuce',
      name: 'zhuce',
      component: () => import('../views/zhuce.vue')
    }
  ]
})

export default router
